﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KTOP.Core.Extensions
{
   static class StringExtensions
    {
        public static IEnumerable<string> SplitAndTrim(this string str, params char[] separator)
        {
            return str.Split(separator).Select(s => s.Trim());
        }

        public static string AppendChars(this string str, int length, char c)
        {
            return str + new string(c, length - str.Length);
        }
    }
}
